package cate.game.res.revelry.msg;

import cate.common.util.GameResult;
import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdBRevelryDraw;
import easy.java.dev.note.NoteField;

public class RevelryGetRewardReq implements MsgInput {
    @NoteField("天数")
    public int day;
    @Override
    public void execute(GameBody game, ClientContext cc) {
        GameResult<Void> r = cc.getRole().getRes().revelryDraw.showReward(day);
        game.notice.message(cc.getRole(), r, true);
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBRevelryDraw.REWARD_REQ;
    }
}
